package com.exm.collectcodenew.web.entity;

import com.fasterxml.jackson.annotation.JsonValue;

public enum ReportStyle {
    ACADEMIC("academic"),
    POPULAR_SCIENCE("popular_science"),
    NEWS("news"),
    SOCIAL_MEDIA("social_media");

    private final String styleValue;

    ReportStyle(String styleValue) {
        this.styleValue =styleValue;
    }
    @JsonValue // 关键注解：使枚举序列化时直接使用 styleValue
    public String getStyleValue() {
        return styleValue;
    }

    @Override
    public String toString() {
        return styleValue;
    }
}
